<template>
  <div class='box-wrap-ws'>
    <div class="box-top">
      <div>
        <span>FB仓库说明</span>
        <span>
          1.上传文件只支持txt格式，号码一行一个，需要国家区号，不需要带“+”号，如印度：9100000000001。<br>
          2.筛选前请先创建对应国家的料子库，请对应国家上传料子。<br>
          3.筛选数限制:1000<数量<100w。 <br>
          4.当前FB有效筛选已经去除封号，用户不需要再去筛选封号！<br>
        </span>
      </div>

    </div>
    <div class='box-operation'>
      <div class="box-search">       
        <div class='form-group-enquire'  @click='addWarehouseCk(1,{})'><img src="../../assets/images/peach-svg/addwarehouse.svg"></div>
        <div class='form-group-enquire' @click='addSieveOpen()'><img src="../../assets/images/peach-svg/fbopen.svg"></div>

        <div class='form-group-enquire'>
          <DatePicker type="daterange" placeholder="请选择时间" style="width: 190px" :editable=false :options="dateOptions" v-model="searchDate" @on-change="changeDate" @on-clear="initDate"></DatePicker>
        </div>
        <div class='form-group-enquire'><el-Input v-model.trim="searchData.name" placeholder="请输入仓库名称" clearable style="width: 200px" @on-enter="onSearchGetList()"></el-Input></div>
        <div class='form-group-enquire'>
          <el-select v-model="searchData.country_id" style="width:200px" placeholder="国家" clearable filterable :disabled="UserInfo.role=='商务'?true:false">
            <el-option :value=row.id v-for="row in countrylist" :label="row.name" :key=row.id ><span>{{row.name}}</span></el-option>
          </el-select>
        </div>        
        <div class='form-group-enquire' @click='onSearchGetList()'><img src="../../assets/images/peach-svg/Frame 23.svg" title="点击刷新"></div>         
        <div class='form-group-del' @click='sureDel()'><img src="../../assets/images/peach-svg/delwarehouse.svg"></div>         
      </div>
    </div>
    <LibVxeTable class="fbstaticData"
      :tableColumns="tableColumns" 
      :tableData="list" 
      :slotHeader="slotHeader" 
      border="none"
      :PageObj="{total:totalCnt,currentPage:searchData.page_index,pageSize:searchData.page_size}"  
      @onPageChange="onChangePageSize" 
      @onSelectChange="onCheckChange"   
      :stripe="false"
      resizable>
     </LibVxeTable>
  </div>
</template>
<script>
import { mapGetters } from "vuex";
import utils from "../../commons/utils";
import {commonMixin} from "../../components/ViewInitMixin" //每一个文件都要包含这个
import {TimePicker} from "iview"
import SearchUser from "../searchUser"
import Request from "../../commons/Request"
import bus from "../../commons/EventBus"

export default {
  name: "addUserDetailView",  //!!这块一定要注意，每一个文件都根据资源path来命名
  components:{TimePicker,SearchUser},
  mixins:[commonMixin],
  data() {
    const validateName= (rule, value, callback) =>{
      // var s = /^[a-zA-Z0-9_]+$/;
      if(value == ""){
        callback(new Error("仓库名称不能为空"));
      }else if(value.length > 20){
        callback(new Error("仓库名称最多为20个字符"));
      }else{
        callback();
      }
    };
    const validateCountry= (rule, value, callback) =>{
      if(value == ""){
        callback(new Error("国家必须选择"));
      }else {
        callback();
      }
    };
    const validatedata_source= (rule, value, callback) =>{
      if(value == ""){
        callback(new Error("数据来源必须选择"));
      }else {
        callback();
      }
    };
    const validatedata_source3= (rule, value, callback) =>{
      if(value == ""){
        callback(new Error("数据来源必须选择"));
      }else {
        callback();
      }
    };
    const validatedata_source4= (rule, value, callback) =>{
      if(value == ""){
        callback(new Error("数据来源必须选择"));
      }else {
        callback();
      }
    };
    const validatenumber_generation= (rule, value, callback) =>{
      if(value == ""){
        callback(new Error("数据选择必须选择"));
      }else {
        callback();
      }
    };
    const validatetask_agg= (rule, value, callback) =>{
      if(value == ""){
        callback(new Error("数据选择必须选择"));
      }else {
        callback();
      }
    };
    return {
      searchDate:"",
      searchTime:[utils.dateFormat(0,"HH")+"00",utils.dateFormat(0,"HH")+"00"],
      searchData:{
        page_index:1,
        page_size:30,
        start:"",
        end:"",
        country_id:"",
        name:"",
        type:2,
      },
      number_generation_task_ids:"",
      letdata_source_type:"",
      priceObj:{},
      price:1,
      time_at:"",
      time_mouth:"",
      selectRows:[],
      countrylist:[],
      sourcelist:[],
      countrylistObj:{},
      list:[],
      totalCnt:0,
      info:{},
      tableColumns:[
        { 
        field: "Id",
        type:"checkbox",
        align: "center",
        width:50,
        },
        {
          title: "序号",
          field: "id",
          align: 'center',
          slots:{
            default:({rowIndex,row},h) =>{
              return [h("div",this.searchData.page_size*(this.searchData.page_index-1)+(rowIndex+1))]
            }
          }
        },
        {
          title: "仓库名称",
          field: "name",
          align: 'center',
        },
        {
          title: "国家",
          field: "country_id",
          align: 'center',
          slots: {
            default: ({row},h) => {
              let name = "";
                if(this.countrylistObj.hasOwnProperty(row.country_id)){
                name = this.countrylistObj[row.country_id];
                }
                return [h("div",name)]
            }
          }
        },
        
        {
          title: "上传数量",
          field: "upload_number",
          align: 'center',
        }, 
        {
          title: "上传次数",
          field: "upload_count",
          align: 'center',
        },
        {
          title: "开通数",
          field: "sieve_open",
          align: 'center',
        },
        {
          title: "活跃数",
          field: "sieve_active",
          align: 'center',
        },
        {
          title: "有效数(性别)",
          field: "sieve_sex",
          align: 'center',
        },
        {
          title: "创建时间",
          field: "create_at",
          align: 'center',
          slots: {
            default: ({row},h) => {
              if(row.create_at == 0){
                return [h("div","--")]
              } else {
                 return [h("div",utils.dateFormat(row.create_at, "yyyy-MM-dd HH:mm:ss"))];
              }
            }
          }
        },{
          title: "修改时间",
          field: "updated_at",
          align: 'center',
          slots: {
            default: ({row},h) => {
              if(row.updated_at == 0){
                return [h("div","--")]
              } else {
                 return [h("div",utils.dateFormat(row.updated_at, "yyyy-MM-dd HH:mm:ss"))];
              }
            }
          }
        },
      ],
      format: {  
        name:{
          labelName: "仓库名称",
          labelType: "text",      
          placeholder:"请输入仓库名称"
        },
        country_id:{
          labelName: "国家",
          labelType: "select",    
          labelValue:[], 
          placeholder:"请选择国家" ,
          labelMessage:'提示：每个仓库的数据只会保存3个月,到期则会自动删除仓库内所有数据,请合理使用仓库存储数据!'         
        },
        task_name:{
          labelName: "任务名称",
           labelType: "text",      
          placeholder:"请输入任务名称"
        },  
        active_model:{
          labelName: "模型选择",
          labelType: "select",    
          labelValue:[{"id":1,"name":"活跃等级较高，筛选数据较少"},{"id":2,"name":"活跃等级中等，筛选数据中等"},{"id":3,"name":"活跃等级较低，筛选数据较多"}], 
          placeholder:"请选择模型选择" , 
        },
        //筛开通的数据来源
        data_source_type:{
          labelName: "数据来源",
          labelType: "select",    
          // labelValue:[{"key":1,"value":"本地上传"},{"key":2,"value":"全球号码生成"},{"key":3,"value":"自定义号码生成"}], 
          labelValue:[{"id":1,"name":"本地上传"},{"id":2,"name":"全球号码生成"},{"id":3,"name":"自定义号码生成"}], 
          placeholder:"请选择数据来源" ,
          labelChange:"data_source_type"  
        },
        file:{
            labelName: "数据上传",
            labelType: "uploadFile", 
            labelValue:[],
            limitCnt:1,
            format:"txt",
            // uploadKey:"",
            labelMaxSize:1021*1024*15, //不能大于10M,
            uploadDir:"fbSieve/valid", // 采购申请文件的存储地址
            labelHide:false,
            toolTip:"文件格式为txt，大小不超过15M，每行一个带区号码，号码数量1000-100W，例如：918520014258  919685455152..."
        },
        de_duplication_type:{
          labelName: "去重",
          labelType: "radio",    
          labelValue:[{"key":1,"value":"当前仓库"},{"key":2,"value":"全局仓库"}], 
          labelMessage: "",
          toolTip:"当前仓库：为当前选择仓库 全局仓库：为当前选择仓库的国家，三个月内创建的相同国家的数据仓库。全局仓库去重，去重时间会相应增加，请根据自身需要选择。",
          labelChange:"de_duplication_type"  
        },
        data_collection_type:{
          labelName: "任务数据",
          labelType: "radio",    
          labelValue:[{"key":1,"value":"全部数据"},{"key":2,"value":"未使用数据"}], 
          labelChange:"data_collection_type",
          labelHide:false,       
        },   
        //筛开通数据选择
        number_generation_task_ids:{
          labelName: "数据选择",
          labelType: "select",    
          labelValue:[], 
          labelMultiple: true,
          placeholder:"请选择数据",  
          labelHide:false,
        },   
      },  
      ruleValidate: {
        name: [{ required: true,validator:validateName, trigger: "blur" }],
        country_id:[{ required: true,validator:validateCountry, trigger: "blur" }],         
        task_name: [{ required: true,message: "任务名称不能为空", trigger: "blur" }],
        data_source_type:[{ required: true,validator:validatedata_source, trigger: "blur" }],
        data_source_type3:[{ required: true,validator:validatedata_source3, trigger: "blur" }],
        data_source_type4:[{ required: true,validator:validatedata_source4, trigger: "blur" }],
        // number_generation_task_ids:[{ required: true,validator:validatenumber_generation, trigger: "blur" }],
        // task_agg_id:[{ required: true,validator:validatetask_agg, trigger: "blur" }],
      },  
      dateOptions:{
        disabledDate(date){
          return date && date.valueOf() > Date.now();
        },

      },
    };
  },
  computed: {
            ...mapGetters(["UserInfo"]),
        },
  methods: {
    async initView(isMounted){
      this.initSearchData();
      this.onSearchGetList()
    },
    async initSearchData(){
      //业务类型配置里面的单价列表
      let resq = await Request.post("exclude", "GetBusinessType");
      this.priceObj={}
      if(resq.code == 0){
        resq.data.list.forEach(ttt => {
          this.$set(this.priceObj,ttt.name,ttt.unit_price)
        });
      }else{
          utils.shadowModel(
          { 
            "icon":require('../../assets/images/peach-svg/hongtan.svg'),
            "modalContent":res.data,
            "title":"提交失败"
          });
        }
      //国家页面列表
      let res = await Request.post("exclude", "GetCountries");
      if (res.code == 0) {
        this.countrylistObj = {}
        this.countrylist = []
        this.format.country_id.labelValue=[]
        if(res.code==0 && res.data.list != null){
            res.data.list.forEach((item) => {
            this.$set(this.countrylistObj,item.id,item.short_name+"_"+item.full_name)
            this.format.country_id.labelValue.push({id:item.id,name:item.short_name+"_"+item.full_name});
            this.countrylist.push({id:item.id,name:item.short_name+"_"+item.full_name});
            })  
        }
      }else{
          utils.shadowModel(
          { 
            "icon":require('../../assets/images/peach-svg/hongtan.svg'),
            "modalContent":res.data,
            "title":"提交失败"
          });
        }
    },
    
    onSearchGetList(){
      this.searchData.searchPage =1;
      this.getList();
    },
    async getList(){
      utils.showLoading()
      //查询
      let res = await this.RequestPost("query_list",this.searchData);
      if(res.code==0){
        this.list = [];
        this.list = res.data.list;
        this.totalCnt = res.data.TotalCnt
        // this.list.push({"totalName":"合计","Cnt":res.data.TotalUserCnt});
      }
      await utils.sleepMs(500)
      utils.hideLoading();
    },
    //开通活跃性别添加
    async addWarehouse(type,row){
      this.handleType=type;
      let title = "";
      let info = {};
      if(this.handleType==2){
        title = "FB筛开通";
        this.format.name.labelDisabled=true
        this.format.country_id.labelDisabled=true
        this.format.country_id.labelMessage=""
        info = {
            warehouse_id:row.id,
            name:row.name,
            country_id:row.country_id,
            task_name:"",
            data_source_type:"",
            file:"",
            de_duplication_type:1,
            data_collection_type:1,
            number_generation_task_ids:"",
        };
        this.onSelectChange("data_source_type",info.data_source_type);
        this.onSelectChange("data_collection_type",info.data_collection_type);
        this.onSelectChange("de_duplication_type",info.de_duplication_type);
      }   
      
      this.info=info
      // console.log(this)//页面调用 关闭添加框调试
      this.formPopIndex=await utils.showFormPage(
        { title: title,el:this.$parent.$el,labelWidth:150,width:700,cancelBtnStatus:1,closeable:true,okText:"提交("+(this.price/10000)+"￥/千条)"},
        this.info,
        this.format,
        this.ruleValidate,
        this.updateInfo, 
        this.onSelectChange,
      );      
    },
    //新建仓库
    async addWarehouseCk(type,row){
      this.handleType=type;
      let title = "";
      let info = {};
      if(this.handleType==1){
        title = "创建仓库";
        this.format.name.labelDisabled=false
        this.format.country_id.labelDisabled=false
        this.format.country_id.labelMessage="提示：每个仓库的数据只会保存3个月,到期则会自动删除仓库内所有数据,请合理使用仓库存储数据!"
        info = {
            type:2,
            name:"",
            country_id:""
        };
      }
      this.info=info
      
      this.formPopIndex=await utils.showFormPage(
        { title: title,el:this.$parent.$el,labelWidth:150,width:700,cancelBtnStatus:0 },
        this.info,
        this.format,
        this.ruleValidate,
        this.updateInfo,
      );      
    },
    onCheckChange(rows){
        this.selectRows = [];
        this.selectRows = rows;
    },
    async updateInfo(info) {
      utils.showLoading()
      let code = -1;
      let actionName = '';
      let tipText = '';
      let res = '';
      this.number_generation_task_ids=""
      if(info.data_source_type==2 || info.data_source_type==3){
        if(info.number_generation_task_ids!=undefined ){this.number_generation_task_ids = info.number_generation_task_ids.join("|")}
      }
      let postData = utils.cloneObj(info);
      if (this.handleType==1) {
        actionName = 'add_item';
        tipText = '仓库添加成功！';    
      }else if(this.handleType==2){
        tipText = '开通添加成功！';    
        delete postData["country_id"]
        delete postData["task_name"]
        postData["name"]=info.task_name
        postData["submit_type"]=1
        postData["number_generation_task_ids"]=this.number_generation_task_ids
      }else if(this.handleType==-1){
        actionName = 'del_item';
        tipText = '删除成功！';
        postData = {"id":this.selectRows.records[0].id};
        this.selectRows=[]
      }
      if(this.handleType==1 || this.handleType==-1){
        res = await this.RequestPost(actionName, postData);
        code = res.code;
        if (code == 0) {
          utils.hideFormPage(this.formPopIndex);
          await utils.sleepMs(1000);
          this.onSearchGetList();
          utils.showTip(tipText);
          this.selectRows.checked==false
        }else{
          this.format.file.labelHide = true;
          utils.shadowModel(
          { 
            "icon":require('../../assets/images/peach-svg/hongtan.svg'),
            "modalContent":res.data,
            "title":"提交失败"
          });
        }
      }else if(this.handleType==2){
        //筛开通一次弹窗判断
        res = await Request.post("fbSieve/valid", "add_item", postData);
        let dedup_count=res.data.dedup_count
        let real_task_number=res.data.real_task_number
        code = res.code;
        if (code == 0) {
          utils.shadowModel(
              { 
               "icon":require('../../assets/images/peach-svg/gouba.svg'),
               "modalContent":"上传数量："+real_task_number+"条；过滤重复后剩余："+dedup_count+"条；相差："+(real_task_number-dedup_count)+"条数据。",
               "title":"上传校验成功",
               "okText":"确定",
               "cacelText":"取消"
              },(res2)=>{
                if(res2.code!=-1){
                  // let res2 = await this.RequestPost(actionName, postData);
                  postData["submit_type"]=2
                  this.fff("add_item", postData)
              }
            });
        }else{
          utils.shadowModel(
          { 
            "icon":require('../../assets/images/peach-svg/hongtan.svg'),
            "modalContent":res.data,
            "title":"提交失败"
          });
        }
      }
      utils.hideLoading();
    }, 
    //筛开通二次弹窗判断
    async fff(actionName, postData){
      let res = await Request.post("fbSieve/valid", actionName, postData);
      if (res.code == 0) {
        if(false){
            utils.showSureModal(
                { 
                "icon":require('../../assets/images/peach-svg/hongtan.svg'),
                "modalContent":"余额不足，请先充值后再次进行筛选业务。",
                "title":"提交失败",
                "okText":"确定",
                "cacelText":"取消"
                });
        }else{
            postData["submit_type"]=""
            utils.showSureModal(
                { 
                "icon":require('../../assets/images/peach-svg/goubaBlue.svg'),
                "modalContent":"当前任务需要消耗"+res.data.cost/10000+"元 ，提交后不能操作停止，请再次确认！",
                "title":"确认提交",
                "okText":"确定",
                "cacelText":"取消"
                },(res)=>{
                  if(res.code!=-1){
                    this.ggg("add_item", postData,"开通添加成功！")
                  }
            });
        }
      }else{
          utils.showSureModal(
          { 
            "icon":require('../../assets/images/peach-svg/hongtan.svg'),
            "modalContent":res.data,
            "title":"提交失败"
          });
        }
      
    },
    
    //筛开通最终添加
    async ggg(actionName, postData,tipText){
      postData["req_id"]=new Date().getTime()
      let res = await Request.post("fbSieve/valid", actionName, postData);
        if (res.code == 0) {
          utils.hideFormPage(this.formPopIndex);
          await utils.sleepMs(1000);
          this.onSearchGetList();
          utils.showTip(tipText);
          let res2 = await Request.post("fbSieve/valid", "query_list");
          bus.$emit("fbvalid",res2.data.list)
          bus.$emit('searchfbvalid','')
          bus.$emit("monitor-sieve-list",res2.data.list)
          this.selectRows=[]
        }else{
          utils.shadowModel(
          { 
            "icon":require('../../assets/images/peach-svg/hongtan.svg'),
            "modalContent":res.data,
            "title":"提交失败"
          });
        }
    },
    
    //删除仓库
    sureDel(item,type) {
       this.handleType = -1;
       if(this.selectRows.records!=undefined && this.selectRows.records.length==1){
          utils.showSureModal({
            "title":"删除提示",            
            "icon":require('../../assets/images/peach-svg/Frame 427318277 (1).svg'),
            "modalContent":"请确认是否删除选中的1个数据仓库"+this.selectRows.records[0].name+"？（正在执行任务的仓库不能删除） ","callBackArgs":{"id":this.selectRows.records[0].id}},(res)=>{
          let code = res.code;
          if(code==0){
            let data = res.data;
            this.updateInfo(data);
          }
        });
        this.getList()
       }else{
         utils.showSureModal({"icon":require('../../assets/images/peach-svg/bluegth.svg'),
         "modalContent":"请选择一项 ",
         "title":"提示"});
      }
        
    }, 
    //ws开通
    async addSieveOpen(){
      utils.showLoading()
      this.price=this.priceObj["fb"]*1000
      if(this.selectRows.records!=undefined && this.selectRows.records.length==1){
        let res = await this.RequestPost("getExpiredTime_item",{"id":this.selectRows.records[0].id})
        this.time_at=res.data.expired
        
        this.format.de_duplication_type.labelMessage="本仓库在："+this.time_at+"即将到期，使用仓库时请关注仓库的使用时间!"
        this.addWarehouse(2,this.selectRows.records[0])
      }else{
         utils.showSureModal({"icon":require('../../assets/images/peach-svg/bluegth.svg'),
         "modalContent":"请选择一项 ",
         "title":"提示"});
      }
      utils.hideLoading()
    },  
    
    onChangePageSize(page,pageSize){
      this.modal = true        
      this.searchData.page_index = page;
      this.searchData.page_size = pageSize;
      this.getList();
    },
    changeDate(){
      this.searchData.start = Date.parse(this.searchDate[0])/1000;
      this.searchData.end = Date.parse(this.searchDate[1])/1000+86400;
      this.onSearchGetList();
    },
    initDate(){
      let nowDay = ""
      let beginDay = nowDay;
      let endDay = nowDay;
      this.searchDate = [new Date(beginDay),new Date(endDay)];
      this.changeDate();
    },
    slotHeader(h) {
    //   return [h("div",{class:{"allCount":true},"style":{"margin-left":"10px"}})]
    },
    filterPartner(item){
      if (item.Id == -1) return true;
      if (this.searchData.searchBusinessId == -1 ) return true
        return item.BusinessId==this.searchData.searchBusinessId;
    },
    filterChannel(item){
      if(this.searchData.searcPartnerId == undefined) {
        this.searchData.searcPartnerId = -1
      }
      if(this.searchData.searchBusinessId == undefined) {
        this.searchData.searchBusinessId = -1
      }

      if (item.Id == -1) return true;
      if ( this.searchData.searchBusinessId == -1 && this.searchData.searcPartnerId == -1 ) return true
      if ( this.searchData.searchBusinessId == -1 && this.searchData.searcPartnerId != -1 && item.PartnerId==this.searchData.searcPartnerId ) return true
      if ( this.searchData.searchBusinessId != -1 && this.searchData.searcPartnerId != -1 && item.PartnerId==this.searchData.searcPartnerId ) return true
      if ( this.searchData.searchBusinessId != -1 && this.searchData.searcPartnerId == -1 && item.BusinessId==this.searchData.searchBusinessId ) return true 
    },
    async onSelectChange(label,value){
      let rowlist=this.selectRows.records[0]
      //筛开通数据来源判断显示
      // this.letdata_source_type=""
      if(label=="data_source_type"){
          this.format.data_collection_type.labelHide = true;
          this.format.number_generation_task_ids.labelHide = true;
          this.format.file.labelHide = true;
            if(value==1 || value=="") {
              this.format.file.labelHide = false;
            }else if(value==2) {
              let res = await Request.post("number/tasks","queryTasks_list",{"country_id":rowlist.country_id,"task_type":1,"submit_type":1});
              this.format.data_collection_type.labelHide = false;
              this.format.number_generation_task_ids.labelHide = false;
                this.sourcelist=[]
                if(res.code==0 && res.data.list != null){
                  res.data.list.forEach(item => {
                    this.sourcelist.push({"id":item.id,"name":item.name+"("+item.nums_available+")"})
                  });
                }
              this.format.number_generation_task_ids.labelValue=this.sourcelist
              this.letdata_source_type=1
              this.info.data_collection_type=1
              
            }else if(value==3) {
              let res = await Request.post("number/tasks","queryTasks_list",{"country_id":rowlist.country_id,"task_type":2,"submit_type":1});
              this.format.data_collection_type.labelHide = false;
              this.format.number_generation_task_ids.labelHide = false;
              this.sourcelist=[]
              if(res.code==0 && res.data.list != null){
                  res.data.list.forEach(item => {
                      this.sourcelist.push({"id":item.id,"name":item.name+"("+item.nums_available+")"})
                    });
                  }
              this.format.number_generation_task_ids.labelValue=this.sourcelist
              this.letdata_source_type=2
              this.info.data_collection_type=1
              
            }
            
        }
        //筛开通未使用数据调用接口
        let letdata_source_type1=this.letdata_source_type
        
        if(label=="data_collection_type"){
          let res =""
          
          if(value==1){
            res = await Request.post("number/tasks","queryTasks_list",{"country_id":rowlist.country_id,"task_type":letdata_source_type1,"submit_type":1});
          }else{
            res = await Request.post("number/tasks","queryTasks_list",{"warehouse_id":rowlist.id,"country_id":rowlist.country_id,"task_type":letdata_source_type1,"used":value,"submit_type":1});
            this.info.number_generation_task_ids=[]
          }
          this.sourcelist=[]
          if(res.code==0 && res.data.list != null){
            res.data.list.forEach(item => {
              this.sourcelist.push({"id":item.id,"name":item.name+"("+item.nums_available+")"})
            });
          }
          this.format.number_generation_task_ids.labelValue=this.sourcelist
        }
        if(label=="de_duplication_type"){
          if(value==2){
            utils.showSureModal({"icon":require('../../assets/images/peach-svg/bluegth.svg'),
            "modalContent":"耗时较久请耐心等待",
            "title":"提示"});
          }
        }
    }
  },
};
</script>  